package cate.game.role.pvp.guildwar.vo;

import cate.game.pvp.guildwar.data.GuildWarPt;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass("公会战据点vo")
public class GuildWarPtVO {

	@NoteField("据点id")
	public int ptId;

	@NoteField("当前获得的星星数")
	public int star;

	@NoteField("区服ID")
	public int srvId;

	@NoteField("主角名")
	public String name;

	@NoteField("战力")
	public long power;

	public static GuildWarPtVO of(GuildWarPt pt) {
		GuildWarPtVO vo = new GuildWarPtVO();
		vo.ptId = pt.ptId;
		vo.star = pt.star;
		vo.name = pt.ps.snapshot.base.name;
		vo.power = pt.ps.snapshot.base.power;
		vo.srvId = pt.ps.snapshot.base.srvId;
		return vo;
	}
}
